<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="google-site-verification" content="yaeorbXgKPwp5BDegBtAJEHYWFEFE-BViWTj74gJPrw" />
<!--  -->
<link href="/css/default.css" type="text/css" rel="stylesheet" />
<!--  -->
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/lang/en.js"></script>
<script type="text/javascript" src="/js/mac/core.min.js"></script>
<title>JQuery MagicGrid Basic demo</title>
<meta name="description" content="JQuery MagicGrid Basic demo" />
<meta name="keywords" content="JQuery Grid Plugin" />
<script type="text/javascript" src="/js/mac/webapp.min.js"></script>
<script type="text/javascript" src="/js/jquery/mousewheel.js"></script>
<script type="text/javascript" src="/js/mac/pager.min.js"></script>
<link type="text/css" rel="stylesheet" href="/css/default/mac/grid/grid.min.css" />
<script type="text/javascript" src="/js/mac/grid.min.js"></script>
<style type="text/css">
.money { text-align: right; }
.demoPanel .viewPort { height: 420px; width: 480px; }
</style>
<script type="text/javascript">
$(function(){
	$('#nav_jump').change(function(){
		location = './' + this.value + '.html';
	}).val('basic');
	$('.demoSource').val($('#demo').html());
});
</script>
</head>
<body>
<div id="head">
	<a href="/en/"><img src="/css/images/logo_s.png" alt="logo" /></a>
	<div class="title">BOARSOFT.COM</div>
	<div class="right">
		<div>
			<a href="/public/lang.php?l=en">English</a>
			|
			<a href="/public/lang.php?l=cn">简体中文</a>
			|
			<a href="http://activemq.apache.org/" target="_blank">ActiveMQ</a>
			|
			<a href="https://redis.io/" target="_blank">Redis</a>
			|
			<a href="http://www.jquery.com/" target="_blank">JQuery</a>
		</div>
	</div>
</div><div id="nav">
	<div id="nav_path">
		&nbsp;&nbsp;
		<a href="/en/">Home</a>
		&gt;
		<a href="/en/mac/js/grid">JQuery MagicGrid</a>
		&gt;
		JQuery MagicGrid Basic demo	</div>
	<div id="nav_back">
		<a href="/mac/js/grid/doc" target="_blank">Document</a>
		|
		<a href="javascript:history.back()">Back</a>
		|
		<a href="/mac/js/grid/dl/basic.html">Download</a>
		|
		<select id="nav_jump">
			<option value="basic">JQuery MagicGrid Basic demo</option>
			<option value="exp">JQuery MagicGrid Expandable demo</option>
			<option value="multiHeaders">JQuery MagicGrid Multi-headers demo</option>
			<option value="fixCol">JQuery MagicGrid Fix column</option>
			<option value="voucher">JQuery MagicGrid Voucher type demo</option>
			<option value="edit">JQuery MagicGrid Inline Editor</option>
			<option value="keyEvt">JQuery MagicGrid Key Event demo</option>
		</select>
		&nbsp;&nbsp;
	</div>
	<div class="clear"></div>
</div>
<div class="demoInfo">
	<h2 class="demoTitle">JQuery MagicGrid Basic demo</h2>
</div>
<div id="demo" class="demoPanel"><script type="text/javascript">
$(function(){
	$('.view').mac('grid', {
		cols : [{
			field: 'subject', title : 'Subject', width: 140
		},{
			field: 'summary', title : 'Summary', width: 162
		},{
			field: 'debit', title : 'Debbit', width: 75, sort: true,
			render: function(r, tr){
				return '<div class="money">$'+r.debit+'</div>';
			}
		},{
			field: 'credit', title : 'Credit', width: 75, sort: true,
			render: function(r, tr){
				return '<div class="money">$'+r.credit+'</div>';
			}
		}],
		loader: {
			url: '/mac/js/grid/data.php',
			params: { pageNo: 1, pageSize: 50 },
			autoLoad: true
		},
		pagerLength: 10
	});
});
</script>
<div class="viewPort">
	<div class="view grid"></div>
</div></div>
<textarea class="demoSource" wrap="off"></textarea>
<iframe src="/mac/js/related.php" class="related"></iframe>
<div id="foot">
Copyright © 2011. All rights reserved&nbsp;&nbsp;蜀ICP备11014774号-1&nbsp;&nbsp;
QQ: 7213571&nbsp;&nbsp;E-mail: pyh_jerry@163.com&nbsp;&nbsp;
<!-- 
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ffc0b0282216be3d16055855d8c0e72d9' type='text/javascript'%3E%3C/script%3E"));
</script>
&nbsp;&nbsp;
 -->
</div></body>
</html>
